package com.example.shengyin.dao;

import com.example.shengyin.entity.Admin;
import com.example.shengyin.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;

/**
 * AdminMapper接口
 * 
 * @author ruoyi
 * @date 2023-07-29
 */
@Service
public interface UserMapper
{
    public User login(@Param("phone")String phone, @Param("pass")String pass);
    public User select(@Param("id")Long id);
    public User selectByPhoneandName(@Param("uname")String uanme,@Param("phone")String phone);

    public List<User> list(@Param("pagestart")int pagestart, @Param("limit")int limit, @Param("phone")String phone);
    public int count(@Param("phone")String phone);
    public int insert(User dAdmin);
    public int update(User dAdmin);
    public int delete(@Param("id")Long id);
    public int deleteByIds(@Param("ids")String ids);
}
